package android_gpio_api;

/**
 * Created by 心魂free on 2019/11/12.
 * <p>
 * GPIO实现类
 */

public class GPIO {

    public static native int exportGpio(int gpio);

    public static native int setGpioDirection(int gpio, int direction);

    public static native int readGpioStatus(int gpio);

    public static native int writeGpioStatus(int gpio, int value);

    public static native int unexportGpio(int gpio);

    static {

        System.loadLibrary("hardware_driver");
    }
}
